import request from '@/utils/request'

// 查询销售退货申请详情列表
export function listSaleBackRequestDetail(query) {
  return request({
    url: '/xiaoshou/saleBackRequestDetail/list',
    method: 'get',
    params: query
  })
}

// 查询销售退货申请详情详细
export function getSaleBackRequestDetail(id) {
  return request({
    url: '/xiaoshou/saleBackRequestDetail/' + id,
    method: 'get'
  })
}

// 新增销售退货申请详情
export function addSaleBackRequestDetail(data) {
  return request({
    url: '/xiaoshou/saleBackRequestDetail',
    method: 'post',
    data: data
  })
}

// 修改销售退货申请详情
export function updateSaleBackRequestDetail(data) {
  return request({
    url: '/xiaoshou/saleBackRequestDetail',
    method: 'put',
    data: data
  })
}

// 删除销售退货申请详情
export function delSaleBackRequestDetail(id) {
  return request({
    url: '/xiaoshou/saleBackRequestDetail/' + id,
    method: 'delete'
  })
}
